package com.feign.feignClient.client;

import feign.Headers;
import feign.Param;
import feign.RequestLine;

import java.util.List;


public interface HelloClient {

	/**
	 * 请求路径为 /heelo
	 */
	  @RequestLine("GET /hello")
	  String sayHello();


	/**
	 * get请求，application/x-www-form-urlencoded
	 * queryStringParam方式（设置参数）
 	 * @param id Long
	 * @return String
	 */
	@RequestLine("GET /list?id={id}")
	@Headers(value = "Content-Type: application/x-www-form-urlencoded")
	String list(@Param("id")  Long id);


}
